package com.gx.po;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * booking_list
 * @author 
 */
public class BookingList implements Serializable {
    /**
     * 预订单id
     */
    private Integer id;

    /**
     * 会员id
     */
    private Integer memberId;

    /**
     * 客房类型id
     */
    private Integer roomTypeId;

    /**
     * 入住人姓名
     */
    private String occupantName;

    /**
     * 手机号
     */
    private String phoneNum;

    /**
     * 入住日期
     */
    private Date checkInDate;

    /**
     * 最晚离店时间
     */
    private Date departureTime;

    /**
     * 客房价格
     */
    private BigDecimal roomRate;

    /**
     * 预定客房数
     */
    private Integer bookingRoomNum;

    /**
     * 支付额
     */
    private BigDecimal payment;

    /**
     * 订单时间
     */
    private Date orderTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否有效
     */
    private Boolean validityJudgment;

    private String orderStates;

    private Integer paymentRecordId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public Integer getRoomTypeId() {
        return roomTypeId;
    }

    public void setRoomTypeId(Integer roomTypeId) {
        this.roomTypeId = roomTypeId;
    }

    public String getOccupantName() {
        return occupantName;
    }

    public void setOccupantName(String occupantName) {
        this.occupantName = occupantName;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public Date getCheckInDate() {
        return checkInDate;
    }

    public void setCheckInDate(Date checkInDate) {
        this.checkInDate = checkInDate;
    }

    public Date getDepartureTime() {
        return departureTime;
    }

    public void setDepartureTime(Date departureTime) {
        this.departureTime = departureTime;
    }

    public BigDecimal getRoomRate() {
        return roomRate;
    }

    public void setRoomRate(BigDecimal roomRate) {
        this.roomRate = roomRate;
    }

    public Integer getBookingRoomNum() {
        return bookingRoomNum;
    }

    public void setBookingRoomNum(Integer bookingRoomNum) {
        this.bookingRoomNum = bookingRoomNum;
    }

    public BigDecimal getPayment() {
        return payment;
    }

    public void setPayment(BigDecimal payment) {
        this.payment = payment;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Boolean getValidityJudgment() {
        return validityJudgment;
    }

    public void setValidityJudgment(Boolean validityJudgment) {
        this.validityJudgment = validityJudgment;
    }

    public String getOrderStates() {
        return orderStates;
    }

    public void setOrderStates(String orderStates) {
        this.orderStates = orderStates;
    }

    public Integer getPaymentRecordId() {
        return paymentRecordId;
    }

    public void setPaymentRecordId(Integer paymentRecordId) {
        this.paymentRecordId = paymentRecordId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BookingList other = (BookingList) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMemberId() == null ? other.getMemberId() == null : this.getMemberId().equals(other.getMemberId()))
            && (this.getRoomTypeId() == null ? other.getRoomTypeId() == null : this.getRoomTypeId().equals(other.getRoomTypeId()))
            && (this.getOccupantName() == null ? other.getOccupantName() == null : this.getOccupantName().equals(other.getOccupantName()))
            && (this.getPhoneNum() == null ? other.getPhoneNum() == null : this.getPhoneNum().equals(other.getPhoneNum()))
            && (this.getCheckInDate() == null ? other.getCheckInDate() == null : this.getCheckInDate().equals(other.getCheckInDate()))
            && (this.getDepartureTime() == null ? other.getDepartureTime() == null : this.getDepartureTime().equals(other.getDepartureTime()))
            && (this.getRoomRate() == null ? other.getRoomRate() == null : this.getRoomRate().equals(other.getRoomRate()))
            && (this.getBookingRoomNum() == null ? other.getBookingRoomNum() == null : this.getBookingRoomNum().equals(other.getBookingRoomNum()))
            && (this.getPayment() == null ? other.getPayment() == null : this.getPayment().equals(other.getPayment()))
            && (this.getOrderTime() == null ? other.getOrderTime() == null : this.getOrderTime().equals(other.getOrderTime()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getValidityJudgment() == null ? other.getValidityJudgment() == null : this.getValidityJudgment().equals(other.getValidityJudgment()))
            && (this.getOrderStates() == null ? other.getOrderStates() == null : this.getOrderStates().equals(other.getOrderStates()))
            && (this.getPaymentRecordId() == null ? other.getPaymentRecordId() == null : this.getPaymentRecordId().equals(other.getPaymentRecordId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMemberId() == null) ? 0 : getMemberId().hashCode());
        result = prime * result + ((getRoomTypeId() == null) ? 0 : getRoomTypeId().hashCode());
        result = prime * result + ((getOccupantName() == null) ? 0 : getOccupantName().hashCode());
        result = prime * result + ((getPhoneNum() == null) ? 0 : getPhoneNum().hashCode());
        result = prime * result + ((getCheckInDate() == null) ? 0 : getCheckInDate().hashCode());
        result = prime * result + ((getDepartureTime() == null) ? 0 : getDepartureTime().hashCode());
        result = prime * result + ((getRoomRate() == null) ? 0 : getRoomRate().hashCode());
        result = prime * result + ((getBookingRoomNum() == null) ? 0 : getBookingRoomNum().hashCode());
        result = prime * result + ((getPayment() == null) ? 0 : getPayment().hashCode());
        result = prime * result + ((getOrderTime() == null) ? 0 : getOrderTime().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getValidityJudgment() == null) ? 0 : getValidityJudgment().hashCode());
        result = prime * result + ((getOrderStates() == null) ? 0 : getOrderStates().hashCode());
        result = prime * result + ((getPaymentRecordId() == null) ? 0 : getPaymentRecordId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", memberId=").append(memberId);
        sb.append(", roomTypeId=").append(roomTypeId);
        sb.append(", occupantName=").append(occupantName);
        sb.append(", phoneNum=").append(phoneNum);
        sb.append(", checkInDate=").append(checkInDate);
        sb.append(", departureTime=").append(departureTime);
        sb.append(", roomRate=").append(roomRate);
        sb.append(", bookingRoomNum=").append(bookingRoomNum);
        sb.append(", payment=").append(payment);
        sb.append(", orderTime=").append(orderTime);
        sb.append(", remark=").append(remark);
        sb.append(", validityJudgment=").append(validityJudgment);
        sb.append(", orderStates=").append(orderStates);
        sb.append(", paymentRecordId=").append(paymentRecordId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}